export default {
    methods: {
        getGroupMem(type){
            return new Promise((resolve, reject) => {
                let option = {
                    param: {
                        roleCategory:type,//1-客服小组，2-信审小组，3-催收小组
                    }       
                }
                this.$axios.post(this.$action.getGroupMember, option).then(res => {
                    if (res.code == 200) {
                        let arr = [];
                        if(res.data){
                            res.data.forEach(value => {
                                arr.push({value: value.memberId, label: value.memberName});
                            })
                        }  
                        resolve(arr);
                    }
                })
            })
        }
    }
  }